import { getAxios } from "../util/HttpUtil"
import { AxiosRequestConfig } from "@ohos/axios"

export namespace LoginRequest {
/**
 * 登录请求
 * @param storeId
 * @param password
 * @returns
 */

  export function login(storeId, password) {
    // 请求url地址
    let url = "/store/login"
    return getAxios().post(url, {
      "storeId": storeId,
      "password": password,
    })
  }


  export function test() {
    // 请求url地址
    let url = "/"
    return getAxios().get(url)
  }
}